use masking operation instead of test_bit for RTDS bits
authorJuergen Gross <jgross@suse.com>
Fri, 2 Oct 2015 11:43:35 +0000 (13:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 2 Oct 2015 11:43:35 +0000 (13:43 +0200)
commitbddb98662e78ea32ec12dea52611f79466c6065a
tree1f7cd6221e8332a20275b62ed73876aaf2492f8e
parent3c352011c0d39ed23656986f5786498a14f9a96e
use masking operation instead of test_bit for RTDS bits

Use a bit mask for testing of a set bit instead of test_bit in case no
atomic operation is needed, as this will lead to smaller and more
effective code.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Dario Faggioli <dario.faggioli@citrix.com>
xen/common/sched_rt.c